#按钮点击
from machine import Pin
import utime

button = Pin(16,Pin.IN, Pin.PULL_UP)
led = Pin("LED",Pin.OUT)

while True:
    if botten.value()==0:
        if led.value() == 1:
            led.value(0)
            print("关")
        else:
            led.value(1)
            print("开")
        utime.sleep(1)
    